//
//  DetilCostumView.m
//  Travel_M_Travel
//
//  Created by APPLE10 on 15-3-30.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "DetilCostumView.h"

#define WIDTHC self.frame.size.width

#define HEIGHTC self.frame.size.height

@implementation DetilCostumView

/*
 // Only override drawRect: if you perform custom drawing.
 // An empty implementation adversely affects performance during animation.
 - (void)drawRect:(CGRect)rect {
 // Drawing code
 }
 */
-(void)dealloc
{
    [_myLable release];
    [_myFootImageView release];
    [_myHeardImageView release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UIFont *font = [UIFont fontWithName:@"ChalkboardSE-Light" size:13];
        
        self.myHeardImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, WIDTHC / 10, HEIGHTC)];
        //        _myHeardImageView.backgroundColor = [UIColor redColor];
        [self addSubview:_myHeardImageView];
        
        
        self.myLable = [[UILabel alloc]initWithFrame:CGRectMake(WIDTHC / 10, 0, WIDTHC * 8 / 10, HEIGHTC)];
        //        _myLable.backgroundColor = [UIColor greenColor];
        _myLable.font = font;
        [self addSubview:_myLable];
        
        self.myFootImageView = [[UIImageView alloc]initWithFrame:CGRectMake(WIDTHC * 9 / 10, 0, WIDTHC / 10, HEIGHTC)];
        //        _myFootImageView.backgroundColor = [UIColor yellowColor];
        [self addSubview:_myFootImageView];
        
        [_myHeardImageView release];
        [_myLable release];
        [_myFootImageView release];
    }
    
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    
}

@end
